<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\WeChatController;
use App\Http\Controllers\api\WeChat\MiniProgramController as WeChatMiniProgramController;


Route::get('/', [HomeController::class, 'index']);
Route::get('/test', [HomeController::class, 'test']);


Route::any('/wechat', [WeChatController::class, 'serve']);
Route::get('/api/wechat/mp_login', [WeChatMiniProgramController::class,'code2Session']);
Route::get('/api/wechat/data_decrypt', [WeChatMiniProgramController::class,'decryptData']);

